Fix a leftover list box child
authorMatthias Clasen <mclasen@redhat.com>
Fri, 8 May 2020 16:26:50 +0000 (12:26 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 11 May 2020 19:42:52 +0000 (15:42 -0400)
We were still using container api on a list box child here.

demos/constraint-editor/constraint-editor-window.c

index 2a7b2280282b53a1fce3d747f1dda5098a34ef3a..bf18b6acc1ddc59199821c9cf2581e5eb58acc9a 100644 (file)
@@ -607,7 +607,7 @@ create_widget_func (gpointer item,
   gtk_widget_set_margin_bottom (label, 10);
   gtk_label_set_xalign (GTK_LABEL (label), 0.0);
   gtk_widget_set_hexpand (label, TRUE);
-  gtk_container_add (GTK_CONTAINER (row), box);
+  gtk_list_box_row_set_child (GTK_LIST_BOX_ROW (row), box);
   gtk_container_add (GTK_CONTAINER (box), label);
 
   if (GTK_IS_CONSTRAINT (item) || GTK_IS_CONSTRAINT_GUIDE (item))